<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>单商品销售数据</title><body class="withvernav">
<style type="text/css">
	thead tr td{
		vertical-align: middle;background-color: #CCCCCC; border: 1px solid #000000 !important ; text-align: center;
	}
</style>
<div class="bodywrapper"> {{include file='/public/leftmenu.tpl'}}
  <div class="centercontent">
    <div class="pageheader notab">
      <h1 class="pagetitle">单商品销售数据查询<span class="pagedesc" style="font-size:14px;">(只统计直发订单)</span></h1>
     
    </div>
    <!--pageheader-->
    
    <div id="contentwrapper" class="contentwrapper">
      <div id="basicform" class="subcontent">
          <!--搜索栏-->
           
    <form class="stdform stdform2" method="get" action="/report/sellGoodSearch">
      <div class="tableoptions">
      开始时间：
       <input type="text"  name="starttime" value="{{$starttime}}" onClick="WdatePicker({dateFmt:'yyyy-MM-dd '})" class="width100 hasDatepicker" /> - <input type="text"  name="endtime" value="{{$endtime}}" onClick="WdatePicker({dateFmt:'yyyy-MM-dd '})" class="width100 hasDatepicker" /> 商品编号(SKU)：<input type="text"  name="sku" value="{{$sku}}"  class="width100">
       <span style="display:none">所属平台: 
       <select id="platform" name="platform">
            <option value="">-请选择-</option>
            <option value="ebay">ebay</option>
            <option value="Amazon">Amazon</option>
            <option value="1号店">1号店</option>
            <option value="淘宝">淘宝</option>
            <option value="Tmall">Tmall</option>
            <option value="ioffer">ioffer</option>
        </select>
       &nbsp;&nbsp;</span>
        <button class="btn btn_orange btn_search radius50">Search</button>
         &nbsp;  &nbsp;</div>
    </form>
    <!--搜索栏结束-->

             <table cellpadding="0" cellspacing="0" border="0" class="stdtable">
          
            <thead>
              <tr bgcolor="#EEEEEE">
                <td height="20" align="center">序号</td>
                <td height="20" align="center">日期</td>
                <td height="20" align="center">销售额</td>
                <td height="20" align="center">成本</td>
                <td height="20" align="center">利润</td>
                <td height="20" align="center">订单量</td>
                <td height="20" align="center">出货量</td>
                <td height="20" bgcolor="#EEEEEE" align="center">利润率</td>
              </tr>
            </thead>
          
             {{foreach from=$list item=res key=key}}
             <tr>
               <td height="20" align="center">{{$key+1}}</td>
               <td height="20" align="center">{{$res.dates}}</td>
               <td height="20" align="right">{{$res.goods_amount_total}}<!--+ $res.shipping_fee_total--></td>
               <td height="20" align="right">{{$res.costprice_total}}<!--+$res.platform_fee_total + $res.payfee_total+$res.realfee--></td>
               <td height="20" align="right">{{$res.goods_amount_total-$res.costprice_total}}</td>
               <td height="20" align="right">{{$res.order_total}}</td>
               <td height="20" align="right">{{$res.goods_number_total}}</td>
               <td height="20" align="right">{{$res.maoliv}}%</td>
             </tr>
            {{/foreach}}
            <tr>
            {{if $searchdata neq 'nosearch'}}
            <td class="head0" align="center"><B>合计：</B></td>
            <td class="head1" align="center"><font color="#FF0000"></font></td>
            <td align="right" class="head1"><strong><font color="#FF0000">{{$total['sell_price_total']}}</font></strong></td>
            <td class="head1" align="right"><strong><font color="#FF0000">{{$total['costprice_total']}}</font></strong></td>
            <td class="head1" align="right"><strong><font color="#FF0000">{{$total['profit']}}</font></strong></td>
            <td class="head1" align="right"><strong><font color="#FF0000">{{$total['order_total']}}</font></strong></td>
            <td class="head1" align="right"><strong><font color="#FF0000">{{$total['sell_number_total']}}</font></strong></td>
            <td class="head1" align="center">&nbsp;</td>
            </tr>
            {{/if}}
          </table>
      </div></div>

</body>
</html>